#include"process.h"

double target_file_size = 1024.0;
double speed = 1.0;

void DownLoad(double size, double split)
{
    double current_total = 0.0;
    while(current_total <= size)
    {
        FlushProcess(size, current_total);

        if(current_total >= size)
        {
            break;
        }
        
        usleep(5000);
        current_total += split;
    }
}

int main()
{
    DownLoad(target_file_size, speed);

    return 0;
}
